﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace HRS_Service.BookingWCF
{
    [ServiceContract]
    public interface IBookingService
    {
        [OperationContract]
        [TransactionFlow(TransactionFlowOption.Allowed)]
        String MakeReservation(Booking b,List<Guest> guestList );

        [OperationContract]
        List<RoomType> FindAvailableRoomType(DateTime StartDate, DateTime EndDate, Int32 NoOfGuest);

        [OperationContract]
        Booking FindBooking(string bookingNo);

        [OperationContract]
        List<Booking> FindBookingsByGuestId(int guestId);

        [OperationContract]
        Guest FindGuestByID(int guestId);

        [OperationContract]
        void AddGuest(Guest guest);
    }
}
